import { forwardRef, Module } from '@nestjs/common';
import { UserRoleService } from './user-role.service';
import { UserRoleController } from './user-role.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UserRole } from '@/modules/system/user-role/entities/user-role.entity';
import { RoleModule } from '@/modules/system/role/role.module';
import { UserModule } from '@/modules/system/user/user.module';

@Module({
    imports: [
        TypeOrmModule.forFeature([UserRole]),
        forwardRef(()=>UserModule),
        forwardRef(()=>RoleModule),
    ],
    controllers: [UserRoleController],
    providers: [UserRoleService],
    exports: [UserRoleService, TypeOrmModule],
})
export class UserRoleModule {
}
